package com.lujianfei.httprequest;

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.lujianfei.httprequest.okhttp.OkhttpActivity
import com.lujianfei.httprequest.retrofit_okhttp.RetrofitActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity: AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main);
        btn_okhttp.setOnClickListener {
            startActivity(Intent(this, OkhttpActivity::class.java))
        }
        btn_retrofit.setOnClickListener {
            startActivity(Intent(this, RetrofitActivity::class.java));
        }
    }
}
